import request from '@/utils/request'

// 查询售前项目列表
export function listPreSalesProject(query) {
  return request({
    url: '/preSalesProject/list',
    method: 'get',
    params: query
  })
}

// 查询售前项目详情
export function getPreSalesProject(id) {
  return request({
    url: '/preSalesProject/' + id,
    method: 'get'
  })
}

// 新增售前项目
export function addPreSalesProject(data) {
  return request({
    url: '/preSalesProject',
    method: 'post',
    data: data
  })
}

// 修改售前项目
export function updatePreSalesProject(data) {
  return request({
    url: '/preSalesProject/' + data.id,
    method: 'put',
    data: data
  })
}

// 删除售前项目
export function delPreSalesProject(id) {
  return request({
    url: '/preSalesProject/' + id,
    method: 'delete'
  })

}
